<% content_for :giohang do %>
<%@dem = 0%>
	<%if @giohangcuatoi%>
		<%if @giohangcuatoi.sp1 != ""%>
			<%@dem = @dem +1%>
		<%end%>
		<%if @giohangcuatoi.sp2 != ""%>
			<%@dem = @dem +1%>
		<%end%>
		<%if @giohangcuatoi.sp3 != ""%>
			<%@dem = @dem +1%>
		<%end%>
		<%if @giohangcuatoi.sp4 != ""%>
			<%@dem = @dem +1%>
		<%end%>
		<%if @giohangcuatoi.sp5 != ""%>
			<%@dem = @dem +1%>
		<%end%>
	<%end%>
	<h1> <%=link_to "giỏ hàng",khachhang_giohang_path%>(<%= @dem%>)</h1>
<%end%>
